package demo

import (
	"encoding/json"
	"fmt"
)

func Protogenesis() {
	Init()
	var gorupList []Group

	DB.Debug().Raw("select count(id) as count,gender,group_concat(name) as name_list from advanceds group by gender").
		Scan(&gorupList)

	json, _ := json.Marshal(gorupList)
	fmt.Println(string(json))
}
